﻿using System;
using System.Collections.Generic;
using Shop.Base.Entity;
using Shop.Entity;
using Shop.Interface;

namespace Shop.Base.Interface
{
    public interface ISystemUserRole:IBase
    {
        /// <summary>
        /// 保存角色【默认先删除，后添加】
        /// </summary>
        /// <param name="list">集合</param>
        /// <param name="userId">用户Id</param>
        bool MultSave(List<SystemUserRolePo> list, Guid userId);

        /// <summary>
        /// 获取用户角色
        /// </summary>
        /// <param name="userId">用户Id</param>
        List<SystemUserRolePo> GetList(Guid userId);
    }
}